<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>购物车</title>
    <link rel="stylesheet" href="./css/shoppingCart.css">
</head>
<script src="https://cdn.bootcss.com/template_js/0.7.1-1/template.js"></script>

<body>
    <div id="header">
        <nav class="header_cont">
            <div class="header_left" id="username">
                <a href="./login.html">登录</a>
                <a href="./register.html">注册</a>
            </div>
            <div class="header_right">
                <a href="">联系客服</a>
                <a href="./shoppingCart.html">购物车</a>
                <a href="">我的订单</a>
                <a href="">我的收藏</a>
            </div>
        </nav>
    </div>
    <div id="search">
        <div class="search_cont">
            <div class="search_l clear-fix">
                <a href="./index.html">
                    <img src="http://www.cycang.com/Public/build/img/shop/logo.jpg" alt="">
                </a>
            </div>
            <div class="search_c">
                <div class="search_cleft">
                    <form action="#" method="get">
                        <div class="search_box">
                            <select name="" id="">
                                <option value="">商品</option>
                                <option value="">店铺</option>
                            </select>
                            <input class="search_text" type="text">
                        </div>
                        <button class="search_btn">搜索</button>
                    </form>

                </div>
            </div>
            <div class="search_r">
                <a href="./shoppingCart.html">
                    <span class="cart_icon"></span>
                    <span>我的购物车</span>
                    <b class="cartNum">0</b>
                </a>
            </div>
        </div>


    </div>
    <div id="navList">
        <ul class="navList_cont">
            <li>
                <a href="./index.html">
                    首页
                </a>
            </li>
            <li><a href="./list.html?typename=01">图书仓</a></li>
            <li><a href="./list.html?typename=02">汉风仓</a></li>
            <li><a href="./list.html?typename=03">手办仓</a></li>
            <li><a href="./list.html?typename=04">首饰仓</a></li>
            <li><a href="./list.html?typename=05">零食仓</a></li>
            <li><a href="./list.html?typename=06">文具仓</a></li>
            <li><a href="./list.html?typename=07">古风仓</a></li>
            <li><a href="./list.html?typename=08">装扮仓</a></li>
            <li><a href="./list.html?typename=9">周边仓</a></li>
            <li><a href="./list.html?typename=10">服饰仓</a></li>
        </ul>
    </div>
    <div id="wrapper">
        <div class="wrapper_ele" style="display:none">
            <div class="wrapper_cont clear-fix">
                <img src="http://www.cycang.com/Public/build/img/shop/list_empty.png" alt="">
                <div class="cont_right">
                    <p>购物车里神马都木有，解开封印买买买解b(￣▽￣)d</p>
                    <a href="./index.html">去逛逛></a>
                </div>
            </div>
            <div class="wrapper_last">
                <h2>
                    <hr>
                    大家都在看
                    <hr>
                </h2>
                <div class="btnCont">
                    <div class="wrapper_list">
                        <div class="wrapper">
                            <script type="text/html" id="banner_temp">
                                <%for(var i in list){%>
                                <dl class="slide item" data-name='<%=list[i].name%>'
                                    data-price='<%=list[i].cover_price%>' data-img='<%=list[i].figure%>'data-id='<%=list[i].product_id%>'>
                                    <a href='./details.html?id=<%=list[i].product_id%>'>
                                        <dt>
                                            <img src="<%=list[i].figure%>" alt="">
                                        </dt>
                                        <dd>
                                            <h3><%=list[i].name%></h2>
                                                <p>￥<%=list[i].cover_price%></p>
                                        </dd>
                                    </a>
                                </dl>
                                <%}%>
                            </script>
                        </div>
                    </div>
                    <a class="prev"></a>
                    <a class="next"></a>
                </div>
            </div>
        </div>
        <div class="wrapper_settlement">
            <script id="cartCont" type="text/html">
                <div class="set_cont">
                    <div class="set_logo clear-fix">
                        <div class="logo">
                            <img src="http://s1.cycangcdn.com/pc/img/cart/cart.png" alt="">
                        </div>
                        <div class="hrr"></div>
                        <div class="logo">
                            <img src="http://s1.cycangcdn.com/pc/img/cart/uncheckout.png" alt="">
                        </div>
                        <div class="hrr"></div>
                        <div class="logo">
                            <img src="http://s1.cycangcdn.com/pc/img/cart/unorder.png" alt="">
                        </div>
                    </div>
                    <section>
                        <div class="set_address clear-fix">
                            <div class="address_cont">
                                配 送 至：
                                <div class="address_text">
                                    <span class="address_value">北京 北京市</span>
                                    <span class="address_icon"></span>
                                </div>
                            </div>
                        </div>
                        <div class="set_table">
                            <div class="table_head clear-fix">
                                <div class="table_allbtn">
                                    <div class="allbtn_cont">
                                        <i class="on ifChoose allChoose" ifChoose="true">
                                            <input type="checkbox" name="" id="">
                                        </i>

                                    </div>
                                    全选
                                </div>
                                <div class="table_mes">商品信息</div>
                                <div class="table_li  table_prc">销售价</div>
                                <div class="table_num">数量</div>
                                <div class="table_li">库存</div>
                                <div class="table_li">小计</div>
                                <div class="table_li">操作</div>
                            </div>
                            <div class="table_cont">
                                <div class="table_items" cont="0">
                                    <div class="table_type">
                                        <div class="table_type_left">
                                            <div class="table_allbtn">
                                                <div class="allbtn_cont">
                                                    <i class="on ifChoose allchoose" ifChoose="true">
                                                        <input type="checkbox" name="" id="">
                                                    </i>

                                                </div>
                                            </div>
                                            <a href="">
                                                <span>BILIBILI</span>
                                                发货
                                            </a>
                                        </div>
                                        <div class="table_type_right">
                                            小计：￥
                                            <%var sum=0%>
                                            <%for(var i in data.data){%>
                                            <%sum+=parseFloat(data.data[i].price)*parseInt(data.data[i].cont)%>
                                            <%}%>
                                            <span class="price"><%=sum%></span>
                                            运费：
                                            <%var fsum=0%>
                                            <%for(var i in data.data){%>
                                            <%if(68>parseFloat(data.data[i].price)*parseInt(data.data[i].cont)){%>
                                            <%fsum+=10%>
                                            <%}%>
                                            <%}%>
                                            <span class="freight"><%=fsum%></span>
                                        </div>
                                    </div>
                                    <div class="table_wrap">
                                        <%for(var item in data.data){%>
                                        <div class="table_item clear-fix item"data-name='<%=data.data[item].name%>' data-price='<%=data.data[item].price%>'
                                            data-img='<%=data.data[item].img%>'data-id='<%=data.data[item].id%>'>
                                            <div class="table_allbtn table_td table_th_3">
                                                <div class="allbtn_cont">
                                                    <i class="on ifChoose choose" ifChoose="true">
                                                        <input type="checkbox" name="" id="">
                                                    </i>

                                                </div>
                                            </div>
                                            <div class="table_td table_th_37">
                                                <a href='./details.html?id=<%=data.data[item].id%>'>
                                                    <img src="<%=data.data[item].img%>" alt="">
                                                </a>
                                                <a href='./details.html?id=<%=data.data[item].id%>' class="title_name"><%=data.data[item].name%></a>
                                            </div>
                                            <div class="table_td table_th_10 table_text">
                                                <p><%=data.data[item].price%></p>
                                            </div>
                                            <div class="table_td table_th_20 table_text">
                                                <div class="num_box">
                                                    <span class="num_btn">-</span>
                                                    <input type="text" disabled="true" name="" class="num_num"
                                                        value='<%=data.data[item].cont%>'>
                                                    <span class="num_btn">+</span>
                                                </div>
                                            </div>
                                            <div class="table_td table_th_10 table_text">
                                                有货
                                            </div>
                                            <div class="table_td table_th_10 table_text">
                                                <span
                                                    class="table_sum"><%=parseFloat(data.data[item].price)*parseInt(data.data[item].cont)%></span>
                                            </div>
                                            <div class="table_td table_th_10 table_text">
                                                <span class="table_del">删除</span>
                                            </div>
                                        
                                        </div>
                                        <%}%>
                                    </div>
                                </div>
                                
                            </div>
                        </div>
                        <div class="set_allselect clear-fix">
                            <div class="allselect_left">
                                <div class="table_allbtn">
                                    <div class="allbtn_cont">
                                        <i class="on ifChoose allChoose" ifChoose="true">
                                            <input type="checkbox" name="" id="">
                                        </i>

                                    </div>
                                    全选
                                </div>
                                <a class="removeSelected" >删除选中商品</a>
                                <a href="">清除失效商品</a>
                                <a href="">加入收藏夹</a>
                            </div>
                            <div class="allselect_right">
                                已选中
                                <span id="commodity_cont">4</span>
                                件商品，金额共计￥
                                <span class="commodity_price">888.00</span>
                            </div>
                        </div>
                        <div class="set_setup clear-fix">
                            <div class="setup_right">
                                应付总额：
                                <span class="commodity_price">￥888.00</span>
                                <a id="goBuy">去结算</a>
                            </div>
                        </div>
                    </section>
                </div>
            </script>
        </div>
    </div>


    <div class="footer_cont clear-fix">
        <div class="footer_ccont clear-fix">
            <div class="footer_left">
                <dl>
                    <dt>商务合作</dt>
                    <dd><a href="">品牌进驻</a></dd>
                    <dd><a href="">IP授权</a></dd>
                    <dd><a href="">批发代销</a></dd>
                    <dd><a href="">票务合作</a></dd>
                </dl>
                <dl>
                    <dt>联系方式</dt>
                    <dd><a href="">官方邮箱：act@cycang.com</a></dd>
                    <dd><a href="">推广合作：act@cycang.com</a></dd>
                    <dd><a href="">媒体合作：act@cycang.com</a></dd>
                    <dd><a href="">商务合作：cycswb@126.com</a></dd>
                </dl>
                <dl>
                    <dt>客服售后</dt>
                    <dd><a href="">客服热线：400-667-1673</a></dd>
                    <dd><a href="">客服QQ1：3112573893</a></dd>
                    <dd><a href="">客服QQ2：2627466500</a></dd>
                </dl>
                <dl>
                    <dt>直播合作</dt>
                    <dd><a href="">QQ：2201959143</a></dd>
                </dl>
            </div>
            <ul class="footer_right">
                <li>
                    <a class="footer_li" href="http://cycang.com/act.php?c=appDownload">
                        <img src="http://www.cycang.com/Public/build/img/shop/qr.png" alt="">
                        <p class="li_center">下载手机次元仓</p>
                    </a>
                </li>
                <li>
                    <i class="footer_weibo"></i>
                    <p>微博搜索并关注<span class="li_center">@次元仓</span></p>
                </li>
                <li>
                    <i class="footer_wechat"></i>
                    <p>微信公众号搜索并关注<span class="li_center">次元仓</span></p>
                </li>

            </ul>
        </div>
    </div>
    <p class="copy_cont">
        ICP © 2017 广州脑动网络科技有限公司 版权所有
        <a href="">免责声明 </a>
        （备案号：<a href="">粤ICP备15028368号</a>)
    </p>
</body>
<!-- <script src="./javascripts/require.js"></script> -->
<script src="https://cdn.bootcss.com/require.js/2.3.6/require.js"></script>
<script>
    require(["./javascripts/require.config"], function () {
        require(["shoppingCart_main"]);
    });
</script>

</html>
<!-- http://act.cycangcdn.com/comm_img/loading.jpg -->